package com.example.mybatis.sqlserver.springbootmybatissqlserver.util;

/**
 * Created by hzy on 2019/2/20.
 */

public class Constants {
    public static class RespMsg extends BaseConstants.RespMsg {
        public static final String MODULE_KEY_EXISTS = "模块标识(module_key)已存在";
        public static final String USER_NOT_EXISTS = "用户不存在";
        public static final String MODULE_KEY_CONFLICT = "模块标识与其他模块产生冲突";
        public static final String MODULE_NOT_EXISTS = "模块不存在";
        public static final String OPERATION_KEY_IS_EXISTS_IN_MODULE = "模块下的指定操作已经存在";
        public static final String OPERATION_NOT_EXISTS = "指定操作不存在";
    }

    public static class RespCode extends BaseConstants.RespCode {
        private static final int MASK_CODE_SYS_OPERATION_MODULE = 21000;
        // 添加模块时,发现模块key已经存在
        public static final int MODULE_KEY_EXISTS = MASK_CODE_SYS_OPERATION_MODULE + 1;

        // 修改模块时,发现模块key与其他模块冲突
        public static final int MODULE_KEY_CONFLICT = MASK_CODE_SYS_OPERATION_MODULE + 2;

        // 模块不存在
        public static final int MODULE_NOT_EXISTS = MASK_CODE_SYS_OPERATION_MODULE + 3;

    }
}
